const message = 'Error: foo is not defined.'
const { log } = console
log(message.startsWith('error'))
// strats有s!!!!! false 区分大小写
log(message.startsWith('Error'))
// true
log(message.endsWith('.'))
// true
log(message.includes('foo'))
// true
// 快捷的字符串查找
